package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.PENILE;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.OverripeDataBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;


public class PenileApi implements IRequestApi, IRequestType {

    private OverripeDataBean overripe;

    public PenileApi(String unparallel, String minuteman) {
        overripe = new OverripeDataBean(unparallel, minuteman);
    }

    @NonNull
    @Override
    public String getApi() {
        return PENILE;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }
}
